﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HexunMicrobloggingClientUI
{
    /*
    public class TaskListView
    {
        private ListView lvBatchIssue = new System.Windows.Forms.ListView();

        public TaskListView(Control.ControlCollection controls)
        {
            Init();
            Bind(controls);
        }

        public void Init()
        {
            InitListViewDesigner();
            InitListViewStyle();
            InitListViewEventHandler();
            InitColumn();
        }

        public void Bind(Control.ControlCollection controls)
        {
            controls.Add(lvBatchIssue);
        }

        private void InitColumn()
        {
            ColumnHeader columnHeader0 = new ColumnHeader();
            columnHeader0.Text = "User Name";
            columnHeader0.TextAlign = HorizontalAlignment.Left;
            columnHeader0.Width = 140;

            ColumnHeader columnHeader1 = new ColumnHeader();
            columnHeader1.Text = "Status";
            columnHeader1.TextAlign = HorizontalAlignment.Center;
            columnHeader1.Width = 100;

            this.lvBatchIssue.Columns.Add(columnHeader0);
            this.lvBatchIssue.Columns.Add(columnHeader1);
        }

        #region Sub-Init Methods

        private void InitListViewEventHandler()
        {
            lvBatchIssue.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvBatchIssue_ColumnClick);

        }

        private void lvBatchIssue_ColumnClick(object sender, ColumnClickEventArgs e)
        {

        }

        private void InitListViewStyle()
        {
            lvBatchIssue.View = System.Windows.Forms.View.Details;
            lvBatchIssue.MultiSelect = true;
            lvBatchIssue.HideSelection = false;
            
            lvBatchIssue.HeaderStyle = ColumnHeaderStyle.Clickable;

            lvBatchIssue.FullRowSelect = true;
        }

        private void InitListViewDesigner()
        {
            lvBatchIssue.Dock = System.Windows.Forms.DockStyle.Fill;
            lvBatchIssue.Location = new System.Drawing.Point(3, 40);
            lvBatchIssue.Name = "lvBatchIssue";
            lvBatchIssue.Size = new System.Drawing.Size(338, 245);
            lvBatchIssue.TabIndex = 1;
            lvBatchIssue.UseCompatibleStateImageBehavior = false;
        }

        #endregion
    }
    */

    public class TaskListView : ListView
    {
        public TaskListView()
        {
 
        }

        
    }
    /*
    public class TaskListViewItemCollection : TaskListView.ListViewItemCollection
    {
        public TaskListViewItemCollection()
        {
        }

        public override ListViewItem Add(ListViewItem value)
        {
            return base.Add(value);
        }
    }
    */
}
